package com.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户角色信息vo")
public class UserRoleVo {

   
    @ApiModelProperty("用户id")  
    private Long id;

    @ApiModelProperty("用户名") 
    @NotBlank(message = "用户名不能为空")
    private String name;

    @ApiModelProperty("用户code") 
    private String userCd;

    @ApiModelProperty("登录名")  
    @NotBlank(message = "登录名不能为空")
    private String loginName;

    @Max(20)
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("注册时间")
    private LocalDateTime registerDate;

    @ApiModelProperty("型别 0-男  1-女") 
    private Boolean userSex;

    @ApiModelProperty("手机号")  
    private String mobile;

    @ApiModelProperty("邮箱") 
    private String email;

    @ApiModelProperty("地址")  
    private String address;

    @ApiModelProperty(" 0-普通用户 1-会员用户 2-其他用户")  
    private Boolean userType;

    @ApiModelProperty("注册类型 0-手机号登录 1-微信快捷登录 2-支付宝 3-邮箱")   
    private Boolean registerType;

    @ApiModelProperty("审核状态：0-未审核 1-已审核")  
    private Boolean userStatus;

    @ApiModelProperty("创建人")   
    private String created;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty("更新人") 
    private String update;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateDate;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("描述")
    private String remark;

    @ApiModelProperty("角色code")
    private String roleCd;

    @ApiModelProperty("角色名称")
    private String roleName;


    @ApiModelProperty("设备id")
    private Integer appId;

    @ApiModelProperty("用户头像")
    private String picture;

}
